<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Asthma Journal</title>
    <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
</head>
<body>
    <c:if test="${empty(param.offlinePersonName)}">
        <p>Now, please click on the link below to log into HealthVault and link this iPhone app to your HealthVault account.</p>
        <a href="${param.loginUrl}">Link this iPhone to your HealthVault account</a>
    </c:if>
    <c:if test="${!empty(param.offlinePersonName)}">
        <p>It appears that you have already linked your iPhone to HealthVault account ${param.offlinePersonName}. You can unlink and then re-link it with another Google account.</p>
        <a href="${initParam['AppUrl']}/healthvault/unlink?appName=${param.appName}&username=${param.username}&nextUrl=${initParam['AppUrl']}/asthma/healthvault/unlink_done.jsp">Un-link this iPhone from HealthVault account</a>
    </c:if>
    <p><a href="toc.jsp">Privacy Policy</a></p>
</body>
</html>
